package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import java.util.List;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.SearchBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.SearchShopGoodsIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.ListListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class SearchShopGoodsModel extends RetrofitBaseModel implements SearchShopGoodsIface<SearchBean> {
    private AllService allService;
    private Retrofit retrofit;
    public SearchShopGoodsModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }

    @Override
    public void SearchShopGoods(String search, ListListener<SearchBean> listListener) {
        Call<List<SearchBean>> call = allService.searchShopGoods(search);
        callenqueueList(call,listListener);
    }
}
